﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FCDB.Entity;

namespace FCDB.Repository
{
    public class WfProcessRepository : LogicBase, ILogic
    {
        public WfProcess GetById(Guid processGUID)
        {
            return DBHelper.WfProcess.FirstOrDefault(t => t.ProcessGUID == processGUID);
        }
        public WfProcess GetByName(string processName)
        {
            return DBHelper.WfProcess.FirstOrDefault(t => t.ProcessName == processName);
        }


      
    }
}
